package com.zdp.mybatisplus.common;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author sesshomaru
 * @date 2019/12/3 11:38
 *
 * 数据源切换
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface DataSourceSwitch {

    DBTypeEnum value() default DBTypeEnum.dbslave;
}
